import { pageOpeTypeEnum } from '@/common';
import { IStudyPackage } from '../interface';
export interface StudyPackageProps {
  value?: IStudyPackage[];
  onChange?: (newValue: IStudyPackage[]) => void;
  type?: keyof typeof pageOpeTypeEnum;
}

export enum EStudyPackageResourceType {
  'videoCourseWare' = 100, // 视频课件
  'graphicCourseWare' = 200, //图文课件
  'pdfCourseWare' = 400, // pdf课件
  // 'sChoiceQue' = '', // 单选题
  // 'mChoiceQue' = '', //多选题
  // 'judgeQue' = '', //判断题
  // 'courseWarePack' = '', //课件包
  // 'planTemplate' = '', //计划模板
  'testPaper' = 300, //试卷
}

export enum EStudyPackageResourceNameType {
  '视频课件' = 100,
  '图文课件' = 200,
  'pdf课件' = 400,
  '试卷' = 300,
}

export type positionInfoValue = {
  addressName?: string;
  latitude?: number;
  longitude?: number;
  name?: string;
  scope?: number;
};
export interface PositionInfoProps {
  value?: positionInfoValue;
  onChange?: (newVal: positionInfoValue) => void;
}
